package com.leadingsoft.pwxk.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Data;

/**
 * 
 * @author ysh
 * @desc 审批信息-其他控制管理要求及许可内容
 */
@Entity
@Data
// 其他控制管理要求
public class OtherController extends Basic {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
//	@JSONField(name = "dataid")
//	private String dataId;
	// 其他控制及管理要求
	@Lob
	@Column(length=1048576)
	@JSONField(name = "othercontent")
	private String otherContent;
	// 其他许可的内容
	@JSONField(name = "xkothercontent")
	@Lob
	@Column(length=1048576)
	private String xkotherContent;
	// 改正规定
	@JSONField(name = "xkcorrective")
	@Lob
	@Column(length=1048576)
	private String xkcorrective;

	@OneToOne(cascade=CascadeType.ALL)
	@JSONField(name = "noise")
	private Noise noise;

	@OneToMany(cascade=CascadeType.ALL)
	@JSONField(name = "solidlist")
	private List<Solid> solids;

	@OneToMany(cascade=CascadeType.ALL)
	@JSONField(name = "correctlist")
	private List<Correct> corrects;

}
